package com.it.mapper;

import com.it.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select * from user where id = #{id}")
    User getUserById(@Param("id") String id);

    @Insert("insert into user(id, name, age, email, version, create_time, update_time, is_delete) " +
        "values (#{id}, #{name}, #{age}, #{email}, #{version}, NOW(), NOW(), '0')")
    Integer addUser(User user);

}




